<template>
     <v-btn :href="printUrl" target="_blank" variant="text" size="x-small">
        <j-icon size="16" color="black">MdiDownload</j-icon>
      </v-btn>
      <PrintGePu :src="printUrl" color="black"  />
    
</template>
<script setup lang="ts">
 
import PrintGePu from "@/components/PrintGePu/index.vue";
 
import { computed, ref, withDefaults } from "vue";
 
const props = withDefaults(defineProps<{ src: string, pdfUrl?: string }>(), {});

const printUrl = computed(()=>{
    if(props.pdfUrl){
        return props.pdfUrl
    }
    return props.src
})
 
 
</script>
